﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="popupActivitiesListingHandover.aspx.cs"
    Inherits="MTRC.ODMS.Web.SOM.Popup.popupActivitiesListingHandover" %>

<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="~/LPM/Common/Validation.ascx" TagName="Validation" TagPrefix="uc" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Disposal Case Detail</title>
    <base target="_self" />
    <meta http-equiv="Expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <script src="../../jQuery/jquery-1.6.2.min.js" type="text/javascript"></script>
    <link href="../../CSS/common.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../../Javascript/CommonFunction.js" type="text/javascript"></script>
    <script type="text/javascript">
        function Return() {
            window.returnValue = 1;
            window.close();
        }
    </script>
</head>
<body style="width: 680px">
    <form id="form1" runat="server">
    <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
    </AjaxControlToolkit:ToolkitScriptManager>
    <asp:UpdatePanel ID="UpdatatePanelMandatory" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="width: 1%">
                    </td>
                    <td>
                        <div>
                            <table cellpadding="0" cellspacing="0" width="100%" style="border-width: 1px; border-color: #AAAAAA;
                                border-style: solid; background-color: #eeeeee;">
                                <tr>
                                    <td>
                                        <div>
                                            <span>
                                                <APJ:DateTextBox ID="dtbToDate" runat="server"></APJ:DateTextBox>
                                                <input type="button" id="btnSearch" runat="server" value="Search" />
                                            </span><span style="padding-left: 10px">
                                                <asp:Literal ID="lblCurrent" runat="server"></asp:Literal>/<asp:Literal ID="lblTotal"
                                                    runat="server"></asp:Literal>
                                            </span><span style="padding-left: 10px">
                                                <input type="button" id="btnPrevious" runat="server" />
                                                <input type="button" id="btnNext" runat="server" />
                                                <asp:Label ID="lblNew" runat="server" Visible="false" CssClass="ErrMsg" />
                                            </span><span style="padding-left: 50px"><b>
                                                <asp:Literal ID="lblHandoverDate" runat="server"></asp:Literal>&nbsp;&nbsp;<asp:Literal
                                                    ID="lblHandoverDateVal" runat="server"></asp:Literal>
                                            </b></span>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        <fieldset>
                                            <legend>
                                                <asp:Label ID="lblHandoverAssetLoan" runat="server" Text=""></asp:Label></legend>
                                            <br />
                                            <APJ:CommonGridView ID="grdHandoverAssetLoan" runat="server" AutoGenerateColumns="False"
                                                BorderColor="black" CssClass="GridView" AllowSorting="true" AscPic="~/Images/Common/arrow_up_green.png"
                                                DescPic="~/Images/Common/arrow_down_green.png">
                                                <PagerSettings Position="Top"></PagerSettings>
                                                <Columns>
                                                    <asp:BoundField DataField="AssetTypeCode" HeaderText="SOM_AssetType" SortExpression="AssetTypeCode"
                                                        ItemStyle-Width="35%" HeaderStyle-Width="35%"></asp:BoundField>
                                                    <asp:BoundField DataField="AssetItemCode" HeaderText="SOM_AssetItem" SortExpression="AssetItemCode"
                                                        ItemStyle-Width="45%" HeaderStyle-Width="45%"></asp:BoundField>
                                                    <asp:BoundField DataField="NumOfLoanItem" HeaderText="SOM_LoanQuantity" SortExpression="NumOfLoanItem"
                                                        ItemStyle-Width="20%" HeaderStyle-Width="20%"></asp:BoundField>
                                                </Columns>
                                                <RowStyle CssClass="GridView_Row"></RowStyle>
                                                <HeaderStyle CssClass="GridView_Header"></HeaderStyle>
                                                <AlternatingRowStyle CssClass="GridView_AlternativeRow"></AlternatingRowStyle>
                                            </APJ:CommonGridView>
                                        </fieldset>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        <fieldset>
                                            <legend>
                                                <asp:Label ID="lblHandoverFireProtection" runat="server" Text=""></asp:Label></legend>
                                            <br />
                                            <APJ:CommonGridView ID="grdHandoverFireProtection" runat="server" AutoGenerateColumns="False"
                                                BorderColor="black" CssClass="GridView" AllowSorting="true" AscPic="~/Images/Common/arrow_up_green.png"
                                                DescPic="~/Images/Common/arrow_down_green.png">
                                                <PagerSettings Position="Top"></PagerSettings>
                                                <Columns>
                                                    <asp:BoundField DataField="FireLinkCode" HeaderText="SOM_FireProtectionSystem" SortExpression="FireLinkCode">
                                                    </asp:BoundField>
                                                    <%-- EventNo Add by Dylan 20150619 for ISSUE U48  --%>
                                                    <asp:BoundField DataField="EventNo" HeaderText="SOM_EventNo" SortExpression="EventNo"
                                                        ItemStyle-Width="100"></asp:BoundField>
                                                    <asp:BoundField DataField="FireLinkStatus" HeaderText="SOM_FireLinkStatus" SortExpression="FireLinkStatus">
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="IsolatedGrp" HeaderText="SOM_FireZoneGroupLoopBeingIsolated"
                                                        SortExpression="IsolatedGrp"></asp:BoundField>
                                                </Columns>
                                                <RowStyle CssClass="GridView_Row"></RowStyle>
                                                <HeaderStyle CssClass="GridView_Header"></HeaderStyle>
                                                <AlternatingRowStyle CssClass="GridView_AlternativeRow"></AlternatingRowStyle>
                                            </APJ:CommonGridView>
                                        </fieldset>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td colspan="3">
                                        <b>
                                            <asp:Literal ID="lblDutySC" runat="server"></asp:Literal>
                                        </b>
                                        <asp:Literal ID="lblDutySCValue" runat="server"></asp:Literal>
                                        (<asp:Literal ID="lblJobTitleValue" runat="server"></asp:Literal>)
                                    </td>
                                </tr>
                                <tr>
                                    <%--<td style="width: 18%" valign="top">--%>
                                    <%--  modified by dylan 20150806 for u110
                              <asp:Literal ID="lblHandoverCheck" runat="server"></asp:Literal>--%>
                                    <%--       </td>--%>
                                    <td style="width: 20%" valign="top">
                                        <asp:Literal ID="lblCheckCorrected" runat="server"></asp:Literal>
                                        <asp:CheckBox ID="cbxReason" runat="server" OnCheckedChanged="cbxReason_OnCheckedChanged"
                                            AutoPostBack="true" />
                                        <asp:HiddenField ID="HidReasonIsMandatory" runat="server" Value="0" />
                                        <%--   modified by dylan 20150806 for u110
                             <div>
                                    <input type="radio" id="rbOK" runat="server" name="rbIfOK" /><asp:Label ID="lblOK"
                                        runat="server"></asp:Label></div>
                                <div>
                                    <input type="radio" id="rbNotOK" runat="server" name="rbIfOK" /><asp:Label ID="lblNotOK"
                                        runat="server"></asp:Label></div>--%>
                                    </td>
                                    <td style="width: 10%" valign="top" style="text-align: right">
                                        <asp:Literal ID="lblReason" runat="server"></asp:Literal>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td style="width: 52%" valign="top">
                                        <asp:TextBox ID="txtReason" runat="server" Width="398px" Height="80px" TextMode="MultiLine"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        <br />
                                        <uc:Validation ID="uc_Validation" runat="server" FunctionID="M140501" IsRequired="true" />
                                        <input type="button" id="btnConfirm" runat="server" />
                                        <input type="button" id="btnCancel" runat="server" onclick="self.close()" />
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <input type="hidden" id="hdnNeedPwd" value="0" runat="server" />
                            <input type="hidden" id="hdnHandoverToUserID" value="0" runat="server" />
                            <input type="hidden" id="hdnHandoverFromUserID" value="0" runat="server" />
                            <input type="hidden" id="hdnCurentHandOverID" value="0" runat="server" />
                            <input type="hidden" id="hdnButConfirmClick" value="0" runat="server" />
                            <input type="hidden" id="hdnOK" value="0" runat="server" />
                            <input type="hidden" id="hdnHandoverAssetLoanCount" value="0" runat="server" />
                            <input type="hidden" id="hdnHandoverFireProtectionCount" value="0" runat="server" />
                            <input type="hidden" id="hdnHandoverTime" value="0" runat="server" />
                            <input type="hidden" id="hdnHandovered" value="0" runat="server" />
                            <textarea id="hdnReason" name="text" runat="server" visible="false"></textarea>
                        </div>
                    </td>
                    <td style="width: 1%">
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="cbxReason" />
            <asp:PostBackTrigger ControlID="btnConfirm" />
        </Triggers>
    </asp:UpdatePanel>
    </form>
</body>
</html>
